package com.tj.template.application.oss;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: binary-option
 * @description
 * @author: binary
 * @create: 2020-06-23 16:22
 **/
@Component
@ConfigurationProperties(prefix = "oss")
public class OSSProperties {
    private String stsDomain;
    private String privateAccessKeyId;
    private String privateAccessKeySecret;
    private String bucketName;
    private String publicEndpoint;
    private String roleArn;

    public String getStsDomain() {
        return stsDomain;
    }

    public OSSProperties setStsDomain(String stsDomain) {
        this.stsDomain = stsDomain;
        return this;
    }

    public String getPrivateAccessKeyId() {
        return privateAccessKeyId;
    }

    public OSSProperties setPrivateAccessKeyId(String privateAccessKeyId) {
        this.privateAccessKeyId = privateAccessKeyId;
        return this;
    }

    public String getPrivateAccessKeySecret() {
        return privateAccessKeySecret;
    }

    public OSSProperties setPrivateAccessKeySecret(String privateAccessKeySecret) {
        this.privateAccessKeySecret = privateAccessKeySecret;
        return this;
    }

    public String getBucketName() {
        return bucketName;
    }

    public OSSProperties setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    public String getPublicEndpoint() {
        return publicEndpoint;
    }

    public OSSProperties setPublicEndpoint(String publicEndpoint) {
        this.publicEndpoint = publicEndpoint;
        return this;
    }

    public String getRoleArn() {
        return roleArn;
    }

    public OSSProperties setRoleArn(String roleArn) {
        this.roleArn = roleArn;
        return this;
    }
}
